database package for generic database access