Database count test
Empty dbIndexArray regardless of success/failure