fixed the Statement syntax in MessageManager, removed queries from
Messages