unify database connection