database access framework