styling
fix undefined error
moved queries to xml file
rewrote query engine
faster inserts