Allow calls to model methods in deferred objects (raw queries) in execute_query function (closes #80)