added throws annotation for fetchAll method