Try to connect when the db config is valid