synchronized SQL and removed window for showing errors