Executes a SELECT staement and calls the callback
for each selected row.
this |
a DB |
stmt |
a SELECT statment to execute |
callback |
a callback to call for each row |
user_data |
user data for the |
0 on success, -1 on error |