If you need to check something quickly with devel module. You can use db_query and put any sql command in it. Like
$query = db_query("SELECT * FROM `block` WHERE `delta` LIKE 'main_menu' ORDER BY `theme` DESC"); foreach($query as $result) { dpm($result); }
and dpm results to see what are the values.