generate a UID and store in DB
add the test for the previous commit