URL reversing added, and connecting to mongo from envvars