fixed more bugs.
fixed some bugs, can execute sql and command line