Fix duplicate entries in packages.db. New method in storflash class for plugins to create interface