[development] node_db_rewrite_sql implementation breaks on pgsql