Save a/b test data in database instead of text file