fixed a bug in db config