Remove dead/useless code

Includes drop of cartodb:db:drop_trigger_cache_checkpoint rake task
Further upgrade lib/sql submodule to fix in-place build of it