Made fixes in order to be able to run properly when the environment is local using grunt local
Fixed the conditional to make the db connect to the right place in production