Removed unneeded checks if write to db file failed