Wrote DBStore's unlockPin()

Wrote an initial version of unlockPin() and cleaned up some comments.