Create a column called "month" in the database on the server. When the player logs into the game, load this value and compare with the current date
if you need to update it automatically, create another column called "new month". Now the game needs to compare these two values. (old / new)
Well, and then send a new value to the database.