Added IsDeleted to MessageController and SQL scripts