change the DB dataview

DESC by date
optimize the inserting problem

using the operation of database transaction,reduce the disk I/O time.