Fix typos in database.py