Much faster database save