Update dibs plugin for new attempts models. Rewrite SQL. Rewrite dibs response