Save data to database at once.
but it has database locking problem.