Fix plugin system

Edit plugin base abstract
Edit database scheme
Edit views