add update and select function,try to modify that can insert to database by tuple