Update sq-lite database ref