set up dev/prod environments to connect to the right database, added local environment