begin migrating backend.py to use rigor's database layer