Handle getting project when wrong ID given + add more complex random refNumber while generating JSON