Fix lastseenmsgid updates in PostgreSQL

No match.