Template for database access objects