fix to db_slave_host, use db_master host if no slave