edit.php old according to old db structure