put cryptography lib to fixed version fix race condition bug in queue handler add lock to db writing and backup to file db on each write