added method to get a new pincod in databse, for use in profileview