refactoring: dedicated package for analysing the data and writing the results to a database
added basic console usage to tricorder.