Improve dbConnection API