Replace limit/offset calls with slice.
Move query functions into models.py.
Add created field to output.