Clean up database tables.