db is set to local on development and remote in production