switch back to open database connection only once; call checkpoin after every certain amount of write operations(Put or Delete)