database.py: Refactors URL insertion.