replaced sql db with simple python datastructures