jenkins: only emit build.queued when db written to