Fixed new entries to DB not overwriting older ones