fixed issue with package plus and minus icons not changing

Signed-off-by: Chris Jones <chris@jonezy.org>
moved _sql

Signed-off-by: Chris Jones <chris@jonezy.org>