One of the Plex ninjas penned this how-to describing how to move your Plex data (including the database) to a new location under Windows: