complete most of backend fuctions.

Signed-off-by: gang.meng <menggangcsu@yahoo.com>