run the code to set the mysql database coding to utf-8
try releasing the lock while exception arises to solve the lockproblem
the lock problem may not be caused by Unicode Decode Error while the data response from douban remain invalid characters in the price entry or something else instead of the lock.release().
Correct try exception code for detecting unicodeerror
Just temporary save the changes because I'm gonna reinstall the ubuntu.