Some database optimizing.