Made scanner more efficient, moved submission code to function, improved DB use.
Updated update time.