Further to @mathias-r-jessen comment (which looks to be the problem), you can ensure that the database query isn't the issue by replacing your database query. Try changing:
string query = "Select * from number where number > 100";
To
string query = "SELECT 110 AS number UNION SELECT 130 AS number";
This will return exactly two rows - so if you see two rows with this your issue will be the db query. As already suggested this is something that a debugger would really help to understand though.