Fixed filtering by contents

+ Can now filter by contents
- Had to use raw SQL since weird bug that seems to stem from contents
being LongUnicode with Pony ORM