save dbname in commit log
add restrictions on the size of commit log
fix bug