bug fix: postgresql user setup
bug fix: create config before edit

create config file before edit database setting