Simplify the db behaviors