Pulling data from database and built search functionality.