parse database games as per the previous input code