Fixed saving database changes for files not wanting to