message db work