implementation of openchangedb_messages functions