Fix issues with production DB setup script