Porting registration to peewee

Authored by Polsaker on Jul 3 2018, 5:56 PM.