Use db_begin/commit_transaction() to save new database. Now 6,9727s/ Before 19,3312s