Pass database session to model_form