Changed session table to allow null