Converted tableEditor to use mysqli