Optimize space usage during database parsing;
Choose internal storage if external is full or not available;
Prompts user to free space if necessary.