Only show connected servers in join dialogue.
Added and moved CREATE statements to start of file. Added error checking. Moved code inside SQL callback.