AttributeError: 'NoneType' object has no attribute 'read'
Fixed: commit database changes in background