using a db clan id genrator to generate clan id