small refactoring to git config
config session to stored in database and change the encryption config