add some message logic based on database interface