Made autoproc work with schema
Cleaned up SqlParser class