more mvc fixes/tidying up file structure. in the middle of implementing database class..