Add environment variables and replace database credentials with environment variables