PHP - Query against all databases