import sorted merged and for doubles checked database