exit upon database connection failure
fixed error if subtitle is undefined