add_entry now prevents database duplicates