DB framework and samples