adding more logging. fixed the mysql user bug. I was calling 'user' instead of 'username'. oops.