Add ability to connect to a db via config object