Added exists function for searching the database.
Added a search function that returns the entry or NULL.
Added function definitions for update and delete function