method to read all points from db