Updated licencing plugin so it compiles
Added missing imports
Fixed missing not ! during connect in SQLite DB