New SQL command to simplify parameterization

Now all functions of MTG_Cube call a self.sql function. This function
properly formats all parameters and inserts them into the SQL query, and
executes the command.

Next up: Make sure all functions necessary to statistics exist. Also,
try to generalize functions to take in any number of restrictions
(filter columns).