when I call getEntries function, updateEntry and getEntries are getting called repeatedly which results I have multiple wrong datas in my database. If I remove the getEntrie