added api key base generation...had way better code, but hit a problem with using uuid generation on database