modified session library to reflect new SQL statements