Fix pkg install with conflicts
Free sql request after printing it not before
Fix pkg stat