do not commit db if session is null