Updated Staff Duties Connection form

Completely re worked all the code to make the application work a lot
better with functions