added documentation to autosql.cpp