Fixed db initialization exception when adding similar items