preliminary changes to support mongodb replica sets, database config option split into db_name, db_host, db_auth, and db_replicaset