Used repository API insead of IBATIS to store and load data