update db schema and target api code.