Now searches the database