Change results storage

Store results in database as counters instead of separate file
Create ideas file

to not forget what to do