avoid DB error when using gemini update