Game server and database interactions

Hi all,
I’m new at multiplayer game programming and I’ve encountered some questions about that.
I particular I don’t know if it is better to load all player information into the server at the start and saving at specific intervals or if I should work and interact with the database all the time without having the data loaded in the server.

Thanks for your attention.

EDIT: I’m trying to make an mmorpg