I have two table in a db and i need to update rows from each of these tables in a thread safe way . I did that through making a function in that db and updating them by using &q