better handling of AI database importing