Fixed bugs ocuring in some odbc connections+speed improvements