Replaced double quotes for single in SQL statements and surrounded lockTable...
Replaced double quotes for single in SQL statements and surrounded lockTable calls with finally for guaranteeing unlocking
Replaced double quotes for single in SQL statements and surrounded lockTable calls with finally for guaranteeing unlocking