Login ALMOST works; MySQL insists on returning timestamps (UNIX timestamps, no less) in some stupid string format, so I have to decode that.