functions to update our db