Lots of changes

Database.php added sample table, index.php minor update, input.php used
new sample table, output.php added API syntax