fixed a few glitches with postgresql sequence names