Changed function name from _config_db to  _connect_db