Moved db alterations for add plugin to plugins.js