searches the database for the requested word