wip. compiled, but throws errors for commands and queries. most likely lexer/parser problem.