use cleverer methods of gaining a database connection during CI and testing