message class added to add things to the database