Finished the search function that searches the database based off a given name.