added some more debugging and jdbc support for saveUser