WIP on the script to send the invites and update the db tables