Refactoring of results db

functionality of #61 not yet complete, merge for reformat