[v6r12] Correctly installing DBs extended (with sql to be sourced)

Also: removed sql lines from several sql files that becomes dangerous when installing via dirac tools