Added db contract and helper classes
Implemented reddist provider
implemented preferences
implemented reddist sync and notifications