added saving to database
added message field