Use ResultWrapper::numRows() instead of DatabaseBase::numRows()

Change-Id: I87f059aaff72bf06ebc72ad3a7904cca8e11fab9
Merge "Use ResultWrapper::numRows() instead of DatabaseBase::numRows()"