Write out thread when saving user
Lock all public database methods