Bug fixes in tomography.rayfan & database.database