adding functionality to post new searched to database.