Use class attribute to identify correct sql query

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Use sqlqueryresultsouter to show USE or DROP query

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Cleanup makegrid.js and do scoped selections

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