Quote tenant_id parameters to be strings

Queries did not match when queried as integers with sqlite 3.8.5