db generic fetch