add %get-int to handle type-coersion to int and use it in generic-postgres