minor fix
add database save