The internet of things database