Tidied up main to be in line with the newer classes
Added a base classs CsDataBag which will autoload a given databag