added db class updated controller core templaterenderer andutilities
merged shit