Adentro interview question

Write a function to update a DB given specific data.