add interfaces and implementations
Merge remote-tracking branch 'origin/db' into db