Adding and Searching a Record in the Database