more complete error checking
provide facility to override db host/user/password