Fixed order by issue and added additional table and column info in schema.sql
	modified:   index.pl
	modified:   sql/schema.sql