preparing for postgresql migration in production