Pagination and model using peewee