updated _dynamicBindResults function to determine query type and return an array of results (for a SELECT query) or number of affected rows (for an INSERT/UPDATE/DELETE query)