[mapper] fixed support for sequences/postgre