added helpers for the database access