fixed typos in cube-visits SQL statements