Added primary key and data storing