Implemented a working demo version of the parsing to sql from mongo. Many bug fixes.