Refactor table naming and creation.

Refactor the post bulk insert merge statement.
Add various table scope schema names.
Add DDL queries to RepCache