SQL schema parser and code generator