changed database schema to support analysis modules