added "_class" column in CREATE TABLE statement to save object's type.
updated test cases.