added session despose to release db connection after executing query