Use database for clients

UUID4! That should be 36 chars then. (I didn't know we were using UUIDs)
Next time I'll spend more time understanding the code base before rushing to code.