updated meta documentation
removed old TODO and refactored sql compiler