adding common method

IsType:check interface type.
DbExecScript: execute the sql script.