fix database client bug: return wrong rowcount