Changing Route Organization and Session Commits

Changed the location of which some classes appear in the routes.py. Also
added the needed sess.commit() after data was changed.