Adding print functions (database access)