postgres: bugfix for insert with autoincrement