Partly complete with sync command
synclegacydb command lists some invalid values in the database
Made database sync script actually modify the database
Some bugfixes to help import issues
Fix missing results in ship name search
Minor cleanup