basic retrieval from the database implemented