Update db_manager.py

Is this right? Didn't test this.