Database storage improvement (user-specified storage folder, code cleanup).