[DB]add some function.
[DB] Merge code.