Scaffolding fixes to fix broken PHP new lines
Model fixes to set as super class + database resolution fix