first pass at moving sql into own table classes, autoloader