Reduce db weight

Fixes #68
Implied global
Fix tests
Merge pull request #70 from TheUnknownOne/design

Reduce db weight