logging

Add logging around sql updates so we know what's going on