A way of querying mirror status using SQL?