simplifying DB connection