Server side for BL and DAL

Hi guys. I started write my first game - just get experience with game dev with Unity3d.
This game turn based game and I started to use PhotonEngine TurnBase (Ir I need to use PUN??)
Now my question is:
If I use PhotonEngine for networking between users (game 1 vs 1) - how I can write result of game to my database, and How I can write Business logic and server side??
Thank you.