fix postgresql deployment (fix #350)