Convert the Arel query object to a SQL string before executing it

Pulled from haroldl/yaml_db via ludicast/yaml_db#37