cleaned up database