Added the function to update database with new PIN
Added logic to the Manage Remote PIN feature
Fixed an issue with the update PIN function