fix #5: avoid duplicate entries in DB