Added improvement
Pre preparing the statement
Created method get for Map class