What you're doing there is, you're adding something into database but not updating it. It's like you wrote the code for program and then you didn't save it!!
So you need to update your database table. So every time you add or delete something from table update it by typing
It should work now.