changed the db to mysql, added Message constructor