add DB_EXISTS function to be able to check if a key exists in the database