Use database connection to retrieve records