the database wrapper supports reads
added all relevant functions for the db interface