Major changes to the database to handle plugin management.