Create a database session in functional tests if engine available