implemented feature request #67, request for unlocking database if it is locked