add update query for correct db