Slave combined with db server, with some bugs.