Replaced sleep in bug676 with wait_for_monitor, removed unsupported commands from maxinfo_sql.
Added a test for the maxinfo SQL interface.