corrected errors in maketables.php