Using models/database with controllers from plugins