fixed duplication issue in pantry backend

now the database won't explode