Quote integers in postgres

Related to ActiveRecord issue: https://github.com/rails/rails/issues/9170