added functionality for table rec_log_test
merge
DataPreparer now creates several files, implemented indexing functions in Database
merged