[feature/session-storage] Set db later to session storage

PHPBB3-9733