All dependencies on sql.php should be removed from Addon class.

I will test this next thing in the morning, but it should be okay.