Add ODM querying to restful actions in sample controller