database and class are created for message

not tested yet