David's search project with the database connection