Updating with db stuff