Class MessageDatabase