Fixes #27: models are now OK with `where` queries