Preorder

Made changes to db, models, and migrated database from sqlite to postgres.