fixed some bugs related to the move of the SQL extension