Fixed bug with removing plugins from DB