rename defs.py to const.py

'define' is convention in C, not in python.
fulfill correct implementation of Worker-ID
duplicate user record in cql when succeeded in sql
sync attribute names
implement login