Added some methods, fixed some bugs (such as setting 0-th parameter of SQL which single parameter is 1-st).