db now provides traceback if database is locked