simplify db module