rework the db config