Added config file and master-slave replication.