Changed to use aBatis class to ease database usage