why database optimization is necessary