upgrade sqllib (badly needed anyway)
fix closures
remove old mysql dependency, make registration transactional