Update database config to postgresql