Add summary.php, modified db schema