Several fixes to the install

Signed-off-by: emanuele <emanuele45@gmail.com>
Wrong file included

Signed-off-by: emanuele <emanuele45@gmail.com>
Override the standard DbTable class

Signed-off-by: emanuele <emanuele45@gmail.com>
Restore query checks during (some parts of) install

Signed-off-by: emanuele <emanuele45@gmail.com>
Wrong class name

Signed-off-by: emanuele <emanuele45@gmail.com>
Try to make tests fit the new system

Signed-off-by: emanuele <emanuele45@gmail.com>