clean up database save