model/base: Added query() and get() methods to all models