[SD] add complain api  and modify database .