fix the problem about database to server