added query to show records stored in database