fix syntax in database.py