Database replication: use the SM table rather than the SMAPIv1 Sm hashtable
Database replication: use the SM table rather than the SMAPIv1 Sm hashtable

The database replication code needs to check the capabilities of the SM
backend. The best way to do this is to consult the SM table in the database
rather than the local host's cache of SMAPIv1 capabilities.

Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@eu.citrix.com>

simonjbeaumont/xen-api,anoobs/xen-api,Frezzle/xen-api,guard163/xen-api,agimofcarmen/xen-api,srowe/xen-api,vasilenkomike/xen-api,euanh/xen-api,djs55/xen-api,agimofcarmen/xen-api,euanh/xen-api,salvocambria/xen-api,rafalmiel/xen-api,anoobs/xen-api,robertbreker/xen-api,vasilenkomike/xen-api,robertbreker/xen-api,guard163/xen-api,srowe/xen-api,jjd27/xen-api,salvocambria/xen-api,euanh/xen-api,rafalmiel/xen-api,anoobs/xen-api,simonjbeaumont/xen-api,salvocambria/xen-api,anoobs/xen-api,thomassa/xen-api,djs55/xen-api,salvocambria/xen-api,jjd27/xen-api,simonjbeaumont/xen-api,Frezzle/xen-api,rafalmiel/xen-api,vasilenkomike/xen-api,euanh/xen-api,guard163/xen-api,guard163/xen-api,agimofcarmen/xen-api,Frezzle/xen-api,djs55/xen-api,vasilenkomike/xen-api,salvocambria/xen-api,robertbreker/xen-api,djs55/xen-api,agimofcarmen/xen-api,rafalmiel/xen-api,thomassa/xen-api,anoobs/xen-api,thomassa/xen-api,vasilenkomike/xen-api,salvocambria/xen-api,jjd27/xen-api,Frezzle/xen-api,djs55/xen-api,jjd27/xen-api,srowe/xen-api,Frezzle/xen-api,jjd27/xen-api,simonjbeaumont/xen-api,thomassa/xen-api,srowe/xen-api,rafalmiel/xen-api,vasilenkomike/xen-api,guard163/xen-api,guard163/xen-api,euanh/xen-api,djs55/xen-api,agimofcarmen/xen-api,thomassa/xen-api,robertbreker/xen-api,anoobs/xen-api,agimofcarmen/xen-api,srowe/xen-api,simonjbeaumont/xen-api,euanh/xen-api,thomassa/xen-api,robertbreker/xen-api,rafalmiel/xen-api,simonjbeaumont/xen-api,robertbreker/xen-api,jjd27/xen-api