Update to movies.json and index.html - both now working from DB query.

movies.json was not receiving the correct input to encode as json, and index.html was unable to parse the result.
Both now resolved.