Fixed schema preparation bugs
Fixed schema preparation bugs

A lack of tests is really coming back to bite here - when changing the function, I forgot to change a couple variable names, which messed up default ui and default schema generation.

This fixes the errors.

connectordb/connectordb,connectordb/connectordb,connectordb/connectordb,connectordb/connectordb-frontend,connectordb/connectordb-frontend,connectordb/connectordb-web,connectordb/connectordb-web,connectordb/connectordb,connectordb/connectordb