implemented http://beets.radbox.org/blog/sqlite-nightmare.html
protected all database queries using beets.radbox.org transaction clases