SQL test: fixed to adopted Starcounter. Some name changes in the test. Part of #2234 and #2228.