Quote integers in postgresql

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