Add shortcut method for query in the model class.