Changed id field to application_id