added fetch and fetchAll for db widget, ref #90