fix (database,index.tpl): Use cloudant URL, </script> missing