Automatic reconnect, auth and database selection support