The SQL import logic sometimes failed with error 597 when not using "admin" login. This could occur when running ctutil -sqlize with the following options:
In this scenario, if the user specified in ctree.conf (or guest) did not have resource permission, an error 456 would be expected. If the user has permission, this should succeed. Before this modification, both cases failed with 597. The logic has been corrected to handle this properly.