Updating db handling a bit