DB framework