Change database configuration to postgresql