Changed how cmd was creatd in GUI to adding everything whent the array
is created.

Added implementaiton to signUP to pass array to the db