added database tables for orgs and documents