Fix config of database