When you wake up in the middle of the night like that, just work on some code or other stuff for your site. You'll get tired, fall back to sleep, forget what you worked on, then in the morning discover that the elves helped out during the night.
Why do you need sleep-support? Simply meditate for 5 minutes, clear your mind of all your Xenforo thoughts and lawsuits - and trust me, you'll sleep well. I do it every night.
Melatonin works for me, we don't have the gummy bear kind however, in fact it is not sold OTC here in Australia at all, had to get the last lot sent to me by a friend in the USA.