Fix postgres and make production env.