Optimized database slightly.