Added indexes and tweaked procedure to improve performance of citation import actions.