Update database.py with utf8 specified