add prototype for database access