Fact database prototype