created pin and user table