sharing db connection
thread aware of own lock via memory var