Problem related to updating the database

Hello friends,
I am facing problem while updating the database. Values in the database are updating when I tried to update it but when I tried to access those afterwards,its giving old values. But once if i logged off from the application and again logged in means everything is working fine. Database connection is fine. I am not getting whats the problem is. if anyone came across such problem means tell me the solution