commit-12-9-2013-1255

worked on the db, still more work to do. worked on the basic structure
and system variables.