update for dbwrap