SQL tables update for user exchanges