Final Code

GetDbPassKey is updated to work with sessionStorage, code cleaned up
from unnecessary lines..