checking for dsn/database now only happens when no connection exists