Forgot to set m_db to null in save_data().