add a function to generate random 32 character hex slugs, add db function to create snippets