finish prepare statement