Fix the "database is locked" bug
Fix the "database is locked" bug

Never do heavy, non-database-specific operations in a transaction.
Helpful resource: http://beets.radbox.org/blog/sqlite-nightmare.html

clee704/jjaljup