Add sql tools for Upgrade purchasing