Fixes an error if we can connect to the db server but weren't able to select the database