How optimize website database

I have a large database and this causes a problem for the hosting, how do I improve it