working on restarting app and reading from database the windows to pen from last session