REALLY reset the Korean database this time.
Refactored main.c into more reasonable sections