Update PG/SQLite SQL for timeout warning