Correct links. Fix db.py (first run)