Fix ignored pair input to MarketDatabase.retrieve* functions