Added SQL with tables for allocation
added other tables to support allocation and cubing.