update the function of the Database