Fixed plugins initialization: now plugin id in mysql database resolved by it's unique code.