Clean up database configuration