ensure ints when expecting ints for sql (closes #14)