added user-pin connection in the 'models' and 'db' folders