simpler db queries with context manager in _db.py, no longer need to manually commit