Use class attribute instead of id for sqlqueryresults

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Remove table_results ID field

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>