fix date compare bug, add db_dump