rivr integration for the peewee database ORM