Consolidate db into a single table