Move executed stuff into main guard and rename getKey to get_key
Add database persistence of traffic
Merge pull request #1 from zoranzaric/master

Database stuff