[WiP] Fix trial expiration

Separating plan_level from community to a new table for the sake of saving some data about when communities have changed their plan levels.
What's the reason for id to be a parameter?