Do some DB work