Fixed issue #1668: Introduce new SQL targets to query metadata
Fixed issue #1639: Login to New Database in OrientDB Studio Does Not Accept Credentials

When the server recognizes the same session is trying to be reused for
another database, invalidate the session, so further login works.