replace mysql config by postgresql