Procedurized editDeck.php

Fixes issue #7
Merge pull request #35 from marhag87/mysql-routines

Procedurized editDeck.php