simplify db connection