integrated sqlite into get all method