Created codes and users tables