Implemented script to create a message in database
Bug fixes