Updating sqlite db