added database to store results so it is kind of working now, what needs to be done is getting it ready for distributed solution