Move database logic into models. Rethink front-view to provide better 404 handling. Simplify userHandleColumn logic. Echo out data on user-profile and environment pages.