Added test and production environments to db settings file.  Split root controller into root and user controllers.