add db classes, helper methods, fix manifests