database layer change with real database access