more debugging

Have to call ->close() after every mysqli call