handles autoincremented int and longlong for postgresql
(maps to serial and bigserial)