Added query functionality to modella. All tests pass.