simplify database api