Thanks for a detailed answer!
One more question. How can I reset settings of a specific plugin in the database?