LPS-44425 Fixed persistence sharding for non default databases.