Move the ClearConfigTables function into the DbConnection class.

Refs #5565