Created simple snippet with dict based DB
Removed dead code
Read from db in main