Added .raw('some SQL statement') handling