added update function in databasehelper