fix some bug,add lock for db_server
...