Move connection and table name declaration to the bottom of dynamic cms class