minor bug fixes
	modified:   db/api.php
	modified:   index.php
	modified:   js/tv.js