Made changes to output a prepared statement for creating table.