added api to store test reults, inmemory and sql database implementation