Read data from bdb,write to sql...