Update doc; fix db rowcount