Refactor, tableCreate, dbCreate returns a query