Fixed & Working : Set function

fixed bug : did not pass by reference so the database did not change