How to identify database is primary or replicated? is there any procedure?