Small script to copy keys over
Some php and mysql performance tweaks