Fix #351, ensure Raw queries are transaction aware