The Union IDR values are now written into the SQL database upon plotting.