Proper JSON is now passed to auth server. Fixed a bug.

Fixed a bug when after the database name was typed in it wasn't kept in memory.