Fixed Local db repeated entries problem