-- fix some bugs in order flow
-- update db script