Again you could do a replace(/ /g, '_') here to make the title into a proper DB key