add requestCode Support & modify some sql code