Created database wrapper class