Fix SQL errors on startup.
Fix NPE on startup that's probably due to trying to queue a Swing message before it's ready.
Fall back to a secondary means of parsing the item number if the first fails.