cleaning up database