Fixed error calling Query instead of sql.Query and

renamed vtype and vdata to type and data to make the system more in line with sv_log.lua's syntax.